package charts.series.bars; 

import flash.display.Sprite;
import flash.geom.Point;

class Bar extends ElementBase {
	public function new( index:Float, style:Dynamic, group:Float ) {
		
		super(index, style, style.colour, style.tip, style.alpha, group);
	}
	
	public override function resize( sc:ScreenCoordsBase ):Void {
		
		var h:Dynamic = this.resize_helper( cast( sc, ScreenCoords) );
		
		this.graphics.clear();
		this.graphics.beginFill( this.colour, 1.0 );
		this.graphics.moveTo( 0, 0 );
		this.graphics.lineTo( h.width, 0 );
		this.graphics.lineTo( h.width, h.height );
		this.graphics.lineTo( 0, h.height );
		this.graphics.lineTo( 0, 0 );
		this.graphics.endFill();
	}
	
}
